﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CherryTomato;
using CherryTomato.Entities;

namespace LikeUs.MovieServices
{
    public class MovieApiService
    {
        private IExteranlApiServices m_apiObject;

        public MovieApiService()
        {
            m_apiObject = new TomatoApiService();
        }

        /// <summary>
        /// Find a movie by Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public LikeUsMovie GetMovieById(int id)
        {
            return m_apiObject.GetMovieById(id);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<LikeUsMovie> GetBoxOfficeList()
        {
            return m_apiObject.GetBoxOfficeList();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public List<LikeUsMovie> SearchMovie(string query)
        {
            return m_apiObject.SearchMovie(query);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="movieIds"></param>
        /// <returns></returns>
        public List<LikeUsMovie> GetMovieCollection(ICollection<int> movieIds)
        {
            return m_apiObject.GetMovieCollection(movieIds);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<LikeUsMovie> GetMoviesInTheaterList()
        {
            return m_apiObject.GetMoviesInTheaterList();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<LikeUsMovie> GetOpeningMoviesList()
        {
            return m_apiObject.GetOpeningMoviesList();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<LikeUsMovie> GetUpcomingMoviesList()
        {
            return m_apiObject.GetUpcomingMoviesList();
        }
    }
}
